//
//  TopViewController.h
//  Baker
//
//  Created by b z on 12-4-18.
//  Copyright (c) 2012年 wsfk. All rights reserved.
//

#import <UIKit/UIKit.h>

@class BookViewController;
@class BookShelfController;

@interface TopViewController : UIViewController<UIWebViewDelegate>{
    
    int topWidth;
    int topHeight;
    BookViewController *bookView;
    BookShelfController *bookShelfView;
    
    IBOutlet UIWebView *myWebView;
}
@property(nonatomic,retain)UIWebView *myWebView;

- (id)initWithBookViewDelegate:(UIViewController *)delegate;
//控制topview是否动态显示或隐藏的方法
- (void)setTopViewHidden:(BOOL)hidden withAnimation:(BOOL)animation;
//隐藏方法
- (void)hiddenTopView;
//根据屏幕是横着还是竖着的，改变topview的大小
- (void)setPageSizeForOrientation:(UIInterfaceOrientation)orientation;

- (void)rotateFromOrientation:(UIInterfaceOrientation)fromInterfaceOrientation toOrientation:(UIInterfaceOrientation)toInterfaceOrientation;
//设置topView的尺寸
- (void)setTopViewFrame:(CGRect)frame;

- (void)loadTopViewWithTopWidth:(int)width topHeight:(int)height;
- (BOOL)isHidden;
- (void)fadeIn;
- (void)fadeOut;
- (void)willRotate;

- (void)goBackHome;
@end
